#!/bin/bash

# 获取脚本所在目录的绝对路径（假设脚本放在Foursteps目录）
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# 启动新终端运行Python程序
gnome-terminal --title "youbaote_depth2" -- bash -c \
"source /home/robocon/miniconda3/etc/profile.d/conda.sh && \
conda activate foursteps && \
python '$DIR/youbaote_depth2.py'; exec bash"

# 如果需要保持其他终端窗口（示例）gnome-terminal --title "youbaote_depth2" -- bash -c \
"echo 'qingchun' | sudo -S bash -c 'source /home/robocon/miniconda3/etc/profile.d/conda.sh && \
conda activate foursteps && \
python $DIR/youbaote_depth2.py'; exec bash"

# gnome-terminal --title "其他服务" -- bash -c "echo '437591' | sudo -S your_command; exec bash"# sleep infinity
